﻿@page
@model AdminUI.Pages.BaseData.VideoPlayModel
@{
	//视频播放，直接传视频地址
	var F = Html.F();
	var url = Request.Query["url"];
}

@section body{

	<div class="m">
		<video id="my-video" class="video-js" preload="auto" width="960" height="400" poster="m.jpg">
			<source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4">
			
			<p class="vjs-no-js"> To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a> </p>
		</video>

	</div>

}

@section script{

	<script src="~/res/third-party/video/js/video.min.js"></script>
	<script type="text/javascript">

		var myPlayer = videojs('my-video');
		videojs("my-video").ready(function () {
			var myPlayer = this;
			myPlayer.play();
		});

	</script>
}

@section head{
	<style>
		.m {
			width: 960px;
			height: 400px;
			margin-left: auto;
			margin-right: auto;
			margin-top: 100px;
		}
	</style>

}